cmake_minimum_required(VERSION 3.16)
project(pool)
set(CMAKE_CXX_STANDARD 11)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

# file(GLOB INCLUDE ${PROJECT_SOURCE_DIR}/*.h)
# file(GLOB SOURCE ${PROJECT_SOURCE_DIR}/*.cpp)

add_library(pool SHARED pool.cpp manager.cpp work.cpp pool.h)
link_directories(${PROJECT_SOURCE_DIR})
add_executable(a.out main.cpp)
target_link_libraries(a.out PUBLIC pool pthread)